<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// #ifdef APP-PLUS
			plus.screen.lockOrientation("portrait-primary");
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	// uView 引入
	@import '@/uni_modules/uview-ui/index.scss';
	// Animate.css 引入
	@import '@/components/animate.min.css';

	@import '@/uni_modules/uni-scss';

	// 图标集
	@font-face {
		font-family: 'iconfont';
		src: url('@/static/iconfont.ttf?t=1658598266679') format('truetype'),
			url('@/static/iconfont.woff2?t=1658598266679') format('woff2'),
			url('@/static/iconfont.woff?t=1658598266679') format('woff');
	}
	
	@font-face {
		font-family: "ali";
		src: url('@/static/fonts/ali.ttf');
	}

	// 图标集
	.iconfont {
		font-family: "iconfont" !important;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	uni-page-body,
	html,
	body {
		width: 100%;
		height: 100%;
		--background: #f3f4f6;
		background-color: var(--background);
		--titleColor: #303133;
		--contentColor: #606266;
		--secColor: #909399;
		--divideColor: #c0c4cc;
	}

	.button {
		background-color: $u-primary;
		font-size: 30rpx;
		color: white;
		height: 70rpx;
		line-height: 70rpx;
		transition: ease-in all .2s;
		border-radius: 100px;
		border: none;
	}

	.button:active {
		background-color: $u-primary-dark;
	}
	
	.shadow {
		box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	}
	
	.shadow-light {
		box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 10px -8px;
	}
	
	.fadeIn-1s {
		animation: fadeIn;
		animation-duration: 1s;
	}
	
	.fadeIn-d3s {
		animation: fadeIn;
		animation-duration: .3s;
	}
	
	.zoomIn-d3s {
		animation: zoomIn;
		animation-duration: .3s;
	}
	
	.flipInX-d3s {
		animation: flipInX;
		animation-duration: .3s;
	}

	.error {
		color: $u-error;
	}
	
	.success {
		color: $u-success;
	}
	
	.primary {
		color: $u-primary;
	}
	
	.bcerror {
		background-color: $u-error;
		color: white;
	}
	
	.bcsuccess {
		background-color: $u-success;
		color: white;
	}
	
	.bcprimary {
		background-color: $u-primary;
		color: white;
	}
	
	.bcwarning {
		background-color: $u-warning;
		color: white;
	}
</style>
